package cnpm02.j2ee.group3.model;

public enum TripType {
	ONE_WAY,
	ROUND_WAY;
	
	/**
	 * Get the name of gender in specific language.
	 * @param language {@link SupportedLanguage}
	 * @return value of gender {@link String}
	 * */
	public String getNameByLanguage(SupportedLanguage lang) {
		switch (lang) {
		case VI:
			if(this == ONE_WAY) {
				return "Một chiều";
			} else {
				return "Khứ hồi";
			}
		case EN:
			if(this == ONE_WAY) {
				return "One-way";
			} else {
				return "Round trip";
			}
		default:
			return "Unknown";
		}
	}
}
